package com.cloud.base.designmode.template;

import lombok.Data;

@Data
public abstract class TemplateInterface {

    public void beforeLog() {

        System.out.println("beforeLog");
    }

    public abstract void execute();

    public void afterLog() {

        System.out.println("afterLog");
    }

    public void start() {
        beforeLog();
        execute();
        afterLog();
    }

}
